<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function fool(name)
			{
				document.write("hello,"+name+"!<br>");
				
			}
			fool("张三")
			fool("李四")
			
			function add(a,b)
			{
				return a+b;
			}
			document.write("10+20+"+add(10,20)+"<br/>");
			
			
			var add2=function(a,b)
			{
				return a+b;
			}
			document.write("10+20+"+add(10,20)+"<br/>");
			
			
			var add3=new Function("a","b","return a+b;")
			document.write("10+20+"+add(10,20)+"<br/>");
			
			
			
			
			
		</script>
		
		
	</body>
</html>
